<?php
namespace app\admin\logic;

use think\facade\View;

class CateLogic
{
    //分类添加
    public static function addCateInfo($post)
    {
        $data = [
            'cate_name'     =>$post['name'],
            'parent_id'     =>$post['parentid'],
            'sort_order'    =>$post['sort'],
            'if_show'       =>$post['if_show']
        ];
        return $data;
    }
    //分类修改
    public static function editCateInfo($post)
    {
        $data = [
            'cate_id'       =>$post['id'],
            'cate_name'     =>$post['name'],
            'sort_order'    =>$post['sort'],
            'if_show'       =>$post['if_show']
        ];
        return $data;
    }

}